/**
 * getInfoRepairer   获取维修人员信息
 */
const repairerStatement = require("../../common/sql_sentences/repairer")

exports.getInfoRepairer = async (req, res) => {
  try {
    // 获取维修人员信息
    const sqlStr = repairerStatement.select({job_number:req.params.r_number})
    let results = await RunSQL(sqlStr)
    if (results.length !== 1) return res.successSend("获取维修人员信息失败！", 10005)
    return res.successSend("", 10000, results[0])
  } catch (error) {
    res.errSend(error)
  }
}
